package com.hoshiibuy.sku.entity.vo;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.apache.commons.lang3.StringUtils;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
* <p>
* 平台商品表SKU
* </p>
*
* @author zhangshuhu
* @since 2019-05-05
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ext_sku")
@ApiModel(value="ExtSkuVO对象", description="平台商品表SKU")
public class ExtSkuVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "spuid")
    @TableField("spuid")
    private Long spuid;

    @ApiModelProperty(value = "skuid")
    @TableField("skuid")
    private Long skuid;

    @TableField("sku_title")
    private String skuTitle;

    @ApiModelProperty(value = "售价")
    @TableField("sale_price")
    private BigDecimal salePrice;

    @ApiModelProperty(value = "市场价")
    @TableField("maket_price")
    private BigDecimal maketPrice;

    @ApiModelProperty(value = "成本价")
    @TableField("cost_price")
    private BigDecimal costPrice;

    @ApiModelProperty(value = "供应商")
    @TableField("vendor_id")
    private Long vendorId;

    @ApiModelProperty(value = "sku图片")
    @TableField("sku_image")
    private String skuImage;

    @ApiModelProperty(value = "属性")
    @TableField("extend_property")
    private String extendProperty;

    @ApiModelProperty(value = "规格")
    @TableField("extend_spec")
    private String extendSpec;

    @ApiModelProperty(value = "采购策略  1-自定供应商 2-自动派单，采购价优先库存需足额 2-自动派单-采购价优先库存额不足")
    @TableField("po_policy")
    private Integer poPolicy;

    @ApiModelProperty(value = "1-中央仓优先  2-中央仓发货 3-一件贷发 4-商城负责发获")
    @TableField("dispatch_policy")
    private Integer dispatchPolicy;

    @ApiModelProperty(value = "创建时间")
    @TableField("createdtime")
    private LocalDateTime createdtime;

    @ApiModelProperty(value = "修改时间")
    @TableField("updatedtime")
    private LocalDateTime updatedtime;

    @ApiModelProperty(value = "建立人")
    @TableField("createdby")
    private String createdby;

    @ApiModelProperty(value = "修改人")
    @TableField("updatedby")
    private String updatedby;

    @ApiModelProperty(value = "状态  0-待审批 1-审批未过 2-已上架 3-已下架")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "是否删除")
    @TableField("deleted")
    private Integer deleted;
}
